package com.poizon.infrastructure.idem.core.domain.value.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum IdempotentErrorEnum {

    // 故障转移/幂等底层存储
    FAULT_TRANSFER_ERROR(5000, "故障转移失败，请稍后再试"),
    // 请求重复提交
    DUPLICATE_SUBMISSION(4001, "请求重复提交，请勿重复操作"),
    // 更新幂等响应失败
    UPDATE_IDEM_RESP_ERROR(4002, "更新幂等响应失败"),
    ;

    private final Integer code;
    private final String message;
}

